package mscontrol;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * Servlet implementation class SetProduceHtml
 */
@WebServlet("/SetProduceHtml")
public class SetProduceHtml extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public SetProduceHtml() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		String queryid=(String)request.getParameter("queryid");
		String deleteid=(String)request.getParameter("deleteid");
		String insertid=(String)request.getParameter("insertid");
		String updateid=(String)request.getParameter("updateid"); 
		
	    HttpSession session=request.getSession(true);
	    session.setAttribute("queryid", queryid);
	    session.setAttribute("deleteid", deleteid);
	    session.setAttribute("insertid", insertid);
	    session.setAttribute("updateid", updateid);
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(request, response);
	}

}
